const fs = require('fs');
const files = fs.readdirSync(__dirname)
console.log(files)
// tempCodeRunnerFile.js
module.exports = (app) => {
    files.forEach(item => {
        if(item ==='index.js' || item==='tempCodeRunnerFile.js') return
        const router = require(`./${item}`)
        app.use(router.routes())
    })
}